package com.orion.app.domain.entity;

import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
@RooJpaEntity(sequenceName = "emp_ref_seq")
public class EmployeeReferenceDetail {

    @NotNull
    @ManyToOne
    private EmployeeDetails employee;

    @Size(max = 100)
    private String name;

    @Size(max = 100)
    private String designation;

    @Size(max = 200)
    private String addressOne;

    @Size(max = 200)
    private String addressTwo;

    @Size(max = 200)
    private String addressThree;

    @Size(max = 200)
    private String city;

    @Size(max = 200)
    private String province;

    @Size(max = 10)
    private String pincode;

    @Size(max = 15)
    private String telephoneOne;

    @Size(max = 15)
    private String telephoneTwo;

    @Size(max = 15)
    private String mobileOne;

    @Size(max = 15)
    private String mobileTwo;
}
